package com.chendongyang.www.po;//用来存放管理者用户的信息（账号和密码）

public class manager {
    private  String id;
    private  String code;

    public manager(String id, String code) {
        this.id = id;
        this.code = code;
    }

    public manager() {
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof manager)) return false;

        manager manager = (manager) o;

        if (id != null ? !id.equals(manager.id) : manager.id != null) return false;
        return code != null ? code.equals(manager.code) : manager.code == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        return result;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "manager{" +
                "id='" + id + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
